-- GENERATED SPELL FOR [Fellicent's Shade] --


function spell0_10358(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(37361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10358', 1000, 1)
end

function spell1_10358(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(11975,pUnit)
pUnit:RegisterEvent('Sorts_10358', 1500, 1)
end

function spell2_10358(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(7068,pUnit)
pUnit:RegisterEvent('Sorts_10358', 16500, 1)
end

function Sorts_10358(pUnit, Event)
local choix_sorts_10358 = math.random(0, 2)
if choix_sorts_10358 == 0 then
pUnit:RegisterEvent('spell0_10358', 1, 1)
end
if choix_sorts_10358 == 1 then
pUnit:RegisterEvent('spell1_10358', 1, 1)
end
if choix_sorts_10358 == 2 then
pUnit:RegisterEvent('spell2_10358', 1, 1)
end
end

function mob10358_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10358', math.random(1500, 3000), 1)
end

function mob10358_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10358_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10358_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10358, 1, 'mob10358_Action')
RegisterUnitEvent(10358, 2, 'mob10358_Leave')
RegisterUnitEvent(10358, 3, 'mob10358_Kill')
RegisterUnitEvent(10358, 4, 'mob10358_Die')
